package com.acme.task2;

/**
 * Class used to test finalize method and GC.
 * @author S.Zhidkov
 *
 */
public class Foo {
    // iteration number
    private int iteration;

    public Foo(int iteration) {
        this.iteration = iteration;
    }

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
		System.out.println("Itaration " + iteration);
	}
}
